﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Guline.SupportCMS.Models.Object
{
    public class Account
    {
        [Key]
        public int ID { get; set; }
        public string UserName { get; set; }
        public string FullName { get; set; }
        public Nullable<int> Gender { get; set; }
        public DateTime dateOfBirth { get; set; }
        public string Email { get; set; }
        public string Phone { get; set; }
        public string Address { get; set; }
        [InverseProperty("Account")]
        public virtual ICollection<Article> Articles { get; set; }
        public Account()
        {
            this.dateOfBirth = DateTime.Now;
        }
    }
}